<template lang="jade">


div.return-bar
	i.iconfont(@click="back()") &#xe668;
	div.limitedname {{items.title}}

div.faqs_page.detail_top

	div(style="margin-top:0.2rem;")
		dl.ctbox
			dt {{items.title}}
			dd
				p {{{items.content}}}

</template>

<script>

import {c_article_detail} from '../../config/api'


export default{
  	
	data(){
		return{
			type:'1',
			keywords:'',
			faqsID:'',
			items:[],
			page:1,
			busy:false
		}
	},
	methods: {
	    back(){
	      window.history.back();
	    },


	    fetch() {

	    	this.$http({url: c_article_detail+'&id='+this.faqsID, method: 'GET'}).then(function (response) {
			//this.$http({url: c_article_detail+'&page='+this.page+'&pid=41&search='+this.keywords, method: 'GET'}).then(function (response) {
				//this.items = response.data.data.list;
				this.items = response.data.data;
				this.busy = false;
			});
	    }
	},
	route:{
		activate( transition ){
			this.faqsID = transition.to.params.faqsId
			this.fetch();
			transition.next();
		}
	}
}

</script>